home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com
- Newsgroups: comp.lang.c++
- Subject: Re: Help!! Visual C++ Linking
- Date: 8 Jan 1996 19:00:08 GMT
- Organization: Kalevi, Inc
- Message-ID: <4crpjo$nnr@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 08, 1996 16:12:04 in article <Help!! Visual C++ Linking>,
- 'cs_alaw@ug.cs.ust.hk (Law Look Tend)' wrote:
-
-
- >I am using Visual C++ 2.0, and I try to compile a simple .cpp program,
- which
- >I wrote in Visual C++ 1.0 and can compile and run perfectly. But the
- >following message appear when build .exe file:
- >
- >
- >Incrementally linking...
- >LINK : performing full link
- >LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol "_main"
- >
-
- Have you defined main? If not, and it's a Console app, then
- that's your problem.
-
- If it's supposed to be a Windows program, then it's probably that
- you need tell the compiler so.
- --
-
- Pete
-
-
-
-
-
-